import java.util.ArrayList;
import java.util.List;

public class Demo05 {
    public static List<Character> func(String str1,String str2){
        ArrayList arrayList = new ArrayList();
        for (int i = 0; i < str1.length(); i++) {
            char c = str1.charAt(i);
            if (!str2.contains(c +"")){
                arrayList.add(c);
            }
        }

        return arrayList;
    }
    public static void main(String[] args) {
        String str1 = "welcome to cvte";
        String str2 = "come";
        System.out.println(func(str1, str2));

        for (char ch:func(str1,str2)) {
            System.out.print(ch);
        }
    }
}
